<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8">
        <title></title>
    </head>
    <body>
        <script type="text/javascript" src="lib/promise.js"></script>
        <script>
            const p = new Promise((resolve, reject) => {
                setTimeout(() => {
                    reject(1)
                }, 100);
            })
            p.then(
                value => {
                    console.log(value)
                },
                reason => {
                    console.log(reason)
                }
            )
        </script>
    </body>
</html>
